package org.hamster.common.services.events
{
	import flash.events.Event;
	
	public class CacheEvent extends Event
	{
		public static const ITEM_LIST_LOAD_ASYNC_COMPLETE:String = "itemListLoadAsyncComplete";
		public static const ITEM_LOAD_ASYNC_COMPLETE:String 	 = "itemLoadAsyncComplete";
		public static const ITEM_LOAD_ASYNC_ERROR:String 		 = "itemLoadAsyncError";
		
		public var key:String;
		public var value:*;
		public var keyList:Array;
		public var valueList:Array;
		
		public function CacheEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
		}
		
		override public function clone():Event
		{
			var result:CacheEvent = new CacheEvent(type, bubbles, cancelable);
			result.key 			= key;
			result.value 		= value;
			result.keyList 		= keyList;
			result.valueList 	= valueList;
			return result;
		}
	}
}